<?php
class Silk_Tms_Block_Adminhtml_Car_Edit extends Mage_Adminhtml_Block_Widget{
	private $_car = null;

	public function __construct()
	{
		parent::__construct();
		$this->setTemplate('tms/car/edit.phtml');
	}
	public function getcar(){
		if($this->_car) return $this->_car;

		$this->_car = Mage::getModel('tms/car')->load($this->getRequest()->getParam('id'));

		if(!$this->_car || !$this->_car->getId())
		{
		    throw new Exception("车载信息不存在！");
		}
		return $this->_car;
	}

}